package com.longteng.lesson2.domain;

/**
 * Created by taki
 * DATE : 2018/11/4 0004
 * TIME : 22:58
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:165157905@qq.com">taki</a>
 */
public abstract class Player {
    private String name;

    public void eat(){
        System.out.println("吃饭");
    }

    Player(String name){
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract void play();
}
